package com.ncloud.resman.service;


import com.alibaba.fastjson.JSONObject;
import com.ncloud.resman.entity.DeviceLocation;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * Created by shiqiang on 2017/8/15.
 */
public interface DeviceLocationService {
   DeviceLocation getLocationByDeviceId(Long deviceId);
    public int insertLocation(DeviceLocation deviceLocation);
    public int updateLocation(DeviceLocation deviceLocation);
    public int deleteLocation(Long deviceId);
    int updateLocationSnNumByDeviceId(String snNum,Long deviceId);
    int updateDeviceLocationInvalid(Long cabinetId,Long snNum);
    int updateDeviceLocationUse(Long cabinetId,Integer useNum,Long deviceId);
    List<Map<String,Object>> getDeviceLocationList(String eqptType,String state);
    int queryLocationUseCount(Long cabinetId,int uNum);
    int updateCabinetUseStateByDevice(Long deviceId);
    String getCabinetUseState(String cabinetId,String useNum);
    int updateCabinetUse(Long deviceId,String cabinetId,String useNum);
    List<Map<String,Object>> getDeviceServerIpList(Long cabinetId);
}
